import './styles/main.less'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import ElementIcons from '@/plugins/svgicon'
import directive from '@/directive'

import App from './App.vue'
import router from './router'

const app = createApp(App)

// svg图标
import 'virtual:svg-icons-register'
app.use(ElementIcons)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
// 自定义指令
directive(app)
app.mount('#app')
